package com.parenting.entities;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 优惠券
 * </p>
 *
 * @author 烟台业达-王世玺
 * @since 2021-08-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("coupon")
@ApiModel(value="CouponDO对象", description="优惠券")
public class CouponDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "COUPON_ID", type = IdType.ASSIGN_ID)
    private String couponId;

    @ApiModelProperty(value = "优惠券名称")
    private String couponName;

    @ApiModelProperty(value = "优惠券类型")
    private String couponType;

    @ApiModelProperty(value = "优惠程度（满减券代表满多少，代金券代表实际付款金额）")
    private Integer fulls;

    @ApiModelProperty(value = "优惠程度（满减券代表减多少，代金券代表实际金额）")
    private Integer reduce;

    @ApiModelProperty(value = "优惠程度（立减金额）")
    private Integer verticalReduction;

    @ApiModelProperty(value = "优惠券数量")
    private Integer total;

    @ApiModelProperty(value = "店铺ID")
    private String shopId;

    @ApiModelProperty(value = "可使用店铺的ID")
    private String availableShopId;

    @ApiModelProperty(value = "可使用店铺的名称")
    private String availableShopName;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer revision;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;


}
